package local.xinshi.netmgr.pkg;

import java.util.HashMap;
import java.util.Map;

public class BaseUtils {
    public static Map<String,String> getHttpQueryMap(String query){
        Map<String,String> map = new HashMap<>();
        String[] qs = query.split("&");
        for (String s : qs) {
            map.put(s.substring(0,s.indexOf("=")), s.substring(s.indexOf("=")+1));
        }
        return map;
    }
}